package com.suning.sawp.po.contend;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 〈一句话功能简述〉<br>
 * 〈功能详细描述〉
 *
 * @author 12061748
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Entity(name = "VOTE_TOPIC_REL")
public class VoteTopicRel implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -2316071675414023181L;

    /**
     * 话题id
     */
    private Long topicId;

    /**
     * 活动创建时间
     */
    private Long personId;

    /**
     * 观点（1正方2反方）
     */
    private String viewPoint;

    @Column(name = "TOPIC_ID")
    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    @Column(name = "PERSON_ID")
    public Long getPersonId() {
        return personId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    @Column(name = "VIEW_POINT")
    public String getViewPoint() {
        return viewPoint;
    }

    public void setViewPoint(String viewPoint) {
        this.viewPoint = viewPoint;
    }

    /**
     * 
     * 〈一句话功能简述〉<br>
     * 〈功能详细描述〉
     *
     * @author 12061748
     * @see [相关类/方法]（可选）
     * @since [产品/模块版本] （可选）
     */
    public static final class ViewPointConstants {
        /**
         * 正方
         */
        public static final String VIEW_ZHENG = "1";
        /**
         * 反方
         */
        public static final String VIEW_FAN = "2";

        private ViewPointConstants() {
        }
    }

}
